<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>
  <script>
    // 定义变量保存个人信息
    var name = "why"
    var age = 18
    var height = 1.88
    var weight = 160
    var address = "广州市"
    // 修改变量的值
    age = 19
    height = 1.90
    weight = 165
    address = "深圳市"


    var nickname = "coderwhy"
    var admin = nickname


    var num1 = 10
    var num2 = 20
    var temp = num1
    num1 = num2
    num2 = temp
    console.log(num1, num2)

    num1 = num1 + num2
    num2 = num1 - num2
    num1 = num1 - num2
    console.log(num1, num2)

    var inputInfo = prompt("请输入一个值")
    console.log(inputInfo)
  </script>
</body>

</html>